package com.codedancer.campus.client.api.circle.ro;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
import javax.validation.constraints.NotEmpty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.URL;

@Data
@ApiModel(description = "圈子创建Ro")
public class CircleCreateRo {

    @ApiModelProperty("标题")
    @Length(min = 2, max = 16, message = "标题在2-16之间")
    private String title;

    @ApiModelProperty("圈子头像")
    @URL(message = "圈子头像地址错误")
    private String avatar;

    @ApiModelProperty("描述")
    @NotEmpty(message = "描述为空")
    private String description;

    @ApiModelProperty("圈子标签")
    private List<String> labels;
}
